import VueRouter from 'vue-router';

import home from "./components/tabbar/HomeContainer.vue"
import vip from "./components/tabbar/VipContainer.vue"
import shopcar from "./components/tabbar/ShopcarContainer.vue"
import search from "./components/tabbar/SearchContainer.vue"

import newsList from './components/news/NewsList.vue';//新闻列表
import newsInfo from './components/news/newsInfo.vue';

import photolist from './components/photos/PhotoList.vue';
import photoInfo from './components/photos/PhotoInfo.vue';

import goodslist from './components/goods/GoodsList.vue'//单击“商品购买”显示的页面
import goodsinfo from './components/goods/GoodsInfo.vue'

var vr = new VueRouter({
    routes:[ 
        {path:"/",redirect:"home"},
        {path:"/home",component:home},
        {path:"/vip",component:vip},
        {path:"/shopcar",component:shopcar},
        {path:"/search",component:search},

        {path:"/home/newsList",component:newsList},
        {path:"/home/newsList/newsInfo/:id",component:newsInfo},

        {path:"/home/photolist",component:photolist},
        {path:"/home/photolist/photoInfo/:id",component:photoInfo},

        {path:"/home/goodslist",component:goodslist},
        {path:"/home/goodslist/goodsinfo/:id",component:goodsinfo},
    ],
    linkActiveClass:"mui-active"
})

export default vr;